package com.hkd.cya.原型模式;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
StudentPrototype pro=new StudentPrototype("软件学院陈奕安","21");
        System.out.println(pro);
        StudentPrototype clone=pro.clone();
        clone.setName("陈奕安副本");
        System.out.println(clone);
        System.out.println("****克隆对象和原对象地址是否相等?****");
        System.out.println(pro.equals(clone));

    }
}
